package com.stedu.mapper;

import com.stedu.bean.PeiJian;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PeiJianMapper {
    boolean insert(PeiJian o);
    //根据ID删除
    boolean delete(Integer partId);
    //根据ID修改
    boolean update(PeiJian o);
    //根据ID查询
    PeiJian selectByPid(Integer partId);
    List<PeiJian> selectByPnameAndOphone(@Param("partName") String partName, @Param("partCode") String partCode);
    List<PeiJian> selectAllParts();
    List<PeiJian> selectAllParts1(Integer partId);
}
